package com.lyl.springcloud.handle;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.lyl.springcloud.model.Payment;
import com.lyl.springcloud.model.Result;

/**
 * @author lylbell
 * @date 2021-06-06 20:35
 */
//全局处理
public class CustomerBlockHandler {
    public static Result handlerException(BlockException exception) {
        return new Result(444,"按客户自定义---1",new Payment(1L,"serial0003"));
    }

    public static Result handlerException2(BlockException exception) {
        return new Result(444,"按客户自定义---2",new Payment(2L,"serial0003"));
    }
}
